package com.zenithmind.coding;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 在线编程学习平台服务启动类
 * 
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@SpringBootApplication(scanBasePackages = {"com.zenithmind.coding", "com.zenithmind.common"})
@EnableDiscoveryClient
@EnableTransactionManagement
@EnableAspectJAutoProxy
@EnableAsync
@EnableScheduling
@MapperScan({"com.zenithmind.coding.mapper", "com.zenithmind.common.mapper"})
public class CodingServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(CodingServiceApplication.class, args);
        System.out.println("在线编程学习平台服务启动成功！");
    }
}
